import Vue from 'vue';
import VueRouter from 'vue-router';

// const Login =()=> import('@/components/login/login.vue');
// const Index =()=> import('@/components/index/index');																			// 框架
// const Manaindex =()=> import('@/components/manaindex/manaindex');																// 后台首页
// const businessList =()=> import('@/components/businessManage/businessList/businessList.vue');									// 账号列表
// const newBusiness =()=> import('@/components/businessManage/newBusiness/newBusiness.vue');										// 新增账号
// const editBusiness =()=> import('@/components/businessManage/editBusiness/editBusiness.vue');										// 编辑账号

// const needExamine =()=> import('@/components/platAudit/needExamine/needExamine.vue');											//待审核
// const passExamine =()=> import('@/components/platAudit/passExamine/passExamine.vue');											//通过审核
// const rejectExamine =()=> import('@/components/platAudit/rejectExamine/rejectExamine.vue');										//被驳回

// const partnerList =()=> import('@/components/partner/partnerList/partnerList.vue');												//商家列表
// const newPartner =()=> import('@/components/partner/newPartner/newPartner.vue');												//新增商家
// const partnerDetail =()=> import('@/components/partner/partnerDetail/partnerDetail.vue');										//商家详情

// const constructionList =()=> import('@/components/constructionManage/constructionList/constructionList.vue');					//施工队列表
// const newConstruction =()=> import('@/components/constructionManage/newConstruction/newConstruction.vue');						//新增施工队
// const constructionDetail =()=> import('@/components/constructionManage/constructionDetail/constructionDetail.vue');				//施工队详情

// const designerList =()=> import('@/components/designerManage/designerList/designerList.vue');									//设计师列表
// const newDesigner =()=> import('@/components/designerManage/newDesigner/newDesigner.vue');										//新增设计师
// const designerDetail =()=> import('@/components/designerManage/designerDetail/designerDetail.vue');								//设计师详情

// const decorationList =()=> import('@/components/decorationManage/decorationList/decorationList.vue');							//装饰公司列表
// const newDecoration =()=> import('@/components/decorationManage/newDecoration/newDecoration.vue');								//新增设装饰公司
// const decorationDetail =()=> import('@/components/decorationManage/decorationDetail/decorationDetail.vue');						//装饰公司详情


// const classList =()=> import('@/components/classification/classList/classList.vue');											// 分类列表
// const newPrimaryClass =()=> import('@/components/classification/newPrimaryClass/newPrimaryClass.vue');							// 新增一级分类
// const newSecondaryClass =()=> import('@/components/classification/newSecondaryClass/newSecondaryClass.vue');

// const shopList =()=> import('@/components/shopManage/shopList/shopList.vue');													// 商品列表
// const shopDetail =()=> import('@/components/shopManage/shopDetail/shopDetail.vue');												// 商品详情

// const productLibraryList =()=> import('@/components/productLibrary/productLibraryList/productLibraryList.vue');					// 产品库列表
// const productLibraryDetail =()=> import('@/components/productLibrary/productLibraryDetail/productLibraryDetail.vue');			// 产品库详情

// const bannerSet =()=> import('@/components/basicsSet/bannerSet/bannerSet.vue');                                                 //banner图设置
// const bannerList =()=> import('@/components/basicsSet/bannerList/bannerList.vue');                                              //banner图设置
// const bannerDetail =()=> import('@/components/basicsSet/bannerDetail/bannerDetail.vue');                                        //banner图设置
// const bannerTypeList =()=> import('@/components/basicsSet/bannerTypeList/bannerTypeList.vue');
// const bannerTypeDetail =()=> import('@/components/basicsSet/bannerTypeDetail/bannerTypeDetail.vue');                            //banner图设置


// const nodeList =()=> import('@/components/rootManage/nodeList/nodeList.vue')                                                    //节点管理
// const roleRoot =()=> import('@/components/rootManage/roleRoot/roleRoot.vue')                                                    //角色权限

// 提现审批
// const approList =()=> import('@/components/withdrawAppro/approList/approList.vue')  //待审批列表
// const approPass =()=> import('@/components/withdrawAppro/approPass/approPass.vue')  //审批通过列表
// const approReject =()=> import('@/components/withdrawAppro/approReject/approReject.vue')  //审批驳回批列表

//卖场
// const marketList =()=> import('@/components/market/marketList/marketList.vue')  //卖场列表
// const marketDetail =()=> import('@/components/market/marketDetail/marketDetail.vue')  //卖场详情

// 资讯公告
// const informationList =()=> import('@/components/information/informationList/informationList.vue') //资讯列表
// const informationAdd =()=> import('@/components/information/informationAdd/informationAdd.vue') //资讯列表
//公告
// const noticeList =()=> import('@/components/notice/list/index.vue')
// const noticeAdd =()=> import('@/components/notice/add/index.vue')
// const noticeEdit =()=> import('@/components/notice/edit/index.vue')


// 推荐管理
// const recommendbusinessAdd =()=> import('@/components/recommendManage/recommendbusiness/recommendbusinessAdd/recommendbusinessAdd.vue') //推荐商家（新增）
// const recommendbusinessList =()=> import('@/components/recommendManage/recommendbusiness/recommendbusinessList/recommendbusinessList.vue') //推荐商家（列表）
// const recommendShopAdd =()=> import('@/components/recommendManage/recommendShop/recommendShopAdd/recommendShopAdd.vue') //推荐商品（新增）
// const recommendShopList =()=> import('@/components/recommendManage/recommendShop/recommendShopList/recommendShopList.vue') //推荐商品（列表）
// const recommendCaseAdd =()=> import('@/components/recommendManage/recommendCase/add/add.vue') //设计案例推荐（新增）
// const recommendCaseList =()=> import('@/components/recommendManage/recommendCase/index/index.vue') //设计案例推荐（列表）
// const recomCaseAddBuild =()=> import('@/components/recommendManage/recommendCaseBuild/add/add.vue') //施工案例推荐（新增）
// const recomCaseListBuild =()=> import('@/components/recommendManage/recommendCaseBuild/index/index.vue') //施工案例推荐（列表）
// const recomDesginAdd =()=> import('@/components/recommendManage/recomDesgin/add/add.vue') //设计师推荐（新增）
// const recomDesginList =()=> import('@/components/recommendManage/recomDesgin/index/index.vue') //设计师推荐（列表）
// const recomBuildAdd =()=> import('@/components/recommendManage/recomBuild/add/add.vue') //施工队推荐（新增）
// const recomBuildList =()=> import('@/components/recommendManage/recomBuild/index/index.vue') //施工队推荐（列表）

// kefu
// const knowledgeDetail =()=> import('@/components/kefu/knowledgeDetail/knowledgeDetail.vue') //客服知识库详情
// const knowledgeList =()=> import('@/components/kefu/knowledgeList/knowledgeList.vue') //客服知识库列表
// const welcomeDetail =()=> import('@/components/kefu/welcomeDetail/welcomeDetail.vue') //客服欢迎入口
// const welcomeList =()=> import('@/components/kefu/welcomeList/welcomeList.vue') //客服欢迎详情

// 1+N小区（小区管理）
// const estateList =()=> import('@/components/estateManage/estateList/estateList.vue') //小区管理列表（楼盘）
// const estateAdd =()=> import('@/components/estateManage/estateAdd/estateAdd.vue') //楼盘增加
// const estateHouseAdd =()=> import('@/components/estateManage/estateHouseAdd/estateHouseAdd.vue') //户型增加
// const houseSource =()=> import('@/components/estateManage/houseSource/houseSource.vue') //房源增加

//优惠券
// const couponList =()=> import('@/components/coupon/list/index.vue'); //优惠券列表
// const addCoupon =()=> import('@/components/coupon/add/index.vue');
// const editCoupon =()=> import('@/components/coupon/edit/index.vue');
// const lootCoupon =()=> import('@/components/coupon/loot/index.vue');

//文章管理
// const articleList =()=> import('@/components/article/list/index.vue');
// const addArticle =()=> import('@/components/article/add/index.vue');
// const editArticle =()=> import('@/components/article/edit/index.vue');


//文章管理
// const articleTypeList =()=> import('@/components/articleType/list/index.vue');
// const addArticleType =()=> import('@/components/articleType/add/index.vue');
// const editArticleType =()=> import('@/components/articleType/edit/index.vue');

// const productHot = () => import('@/components/productHot/list/index.vue');
// const addProductHot =()=> import('@/components/productHot/add/index.vue');

// 财务
// const shopSettle =()=> import('@/components/financeManage/businessOrder/shopSettle/shopSettle.vue'); //商家结算
// const makerSettle =()=> import('@/components/financeManage/distriSettle/makerSettle/makerSettle.vue'); //创客结算
// const guideSettle =()=> import('@/components/financeManage/distriSettle/guideSettle/guideSettle.vue'); //导购结算
// const businessApproval =()=> import('@/components/financeManage/withdrawal/businessApproval/index.vue'); //商家提现审批
// const makerApproval =()=> import('@/components/financeManage/withdrawal/makerApproval/index.vue'); //创客提现审批
// const guideApproval =()=> import('@/components/financeManage/withdrawal/guideApproval/index.vue'); //导购提现审批
// const bankCardManage =()=> import('@/components/financeManage/withdrawal/bankCardManage/index.vue'); //提现银行卡管理
// const manageGeneral =()=> import('@/components/financeManage/financeSettle/manageGeneral/index.vue'); //经营总况
// const withdrAndFree =()=> import('@/components/financeManage/financeSettle/withdrAndFree/index.vue'); //提现及手续费结算

//用户
// const userLevelList = () => import('@/components/user/level/list/index.vue');
// const userLevelAdd = () => import('@/components/user/level/add/index.vue');
// const userLevelEdit = () => import('@/components/user/level/edit/index.vue');
// const userPointList = () => import('@/components/user/point/list/index.vue');
// const userPointAdd = () => import('@/components/user/point/add/index.vue');
// const userPointEdit = () => import('@/components/user/point/edit/index.vue');

//活动-建档百年
// const partyList = () => import('@/components/activity/party/list.vue');
// const likeList = () => import('@/components/activity/like/list.vue');
// const partyStatics = () => import('@/components/activity/statics/index.vue');


//品牌
// const brandList = () => import('@/components/brand/list/index.vue');
// const brandEdit = () => import('@/components/brand/edit/index.vue');
// const brandAdd = () => import('@/components/brand/add/index.vue');

// 直播管理
// const liveCate = () => import('@/components/liveManage/liveCate/index.vue'); //直播分类
// const liveList = () => import('@/components/liveManage/liveList/index/index.vue'); //直播分类
// const liveDetail = () => import('@/components/liveManage/liveList/detail/detail.vue'); //直播分类

//房源
// const houseList = () => import('@/components/house/list/index.vue');

// 系统配置
// const systemSet = () => import('@/components/systemSet/index.vue'); //系统配置

//首页分类
// const appCateList = () => import('@/components/classification/appcate/list/index.vue');
// const appCateAdd = () => import('@/components/classification/appcate/add/index.vue');
// const appCateEdit = () => import('@/components/classification/appcate/edit/index.vue');

Vue.use(VueRouter);

const router = new VueRouter({
  routes: [
    {
      path: '/',
      name: 'index',
      component: () => import(/* webpackChunkName: "index" */ '@/components/index/index'),
      redirect: { name: 'manaindex' },
      children: [
        {
          path: 'extClassAdd',
          name: 'extClassAdd',
          meta: { title: '新增泛家居类' },
          component: () => import(/* webpackChunkName: "extClassAdd" */ '@/components/classification/extClassList/add.vue'),
        },
        {
          path: 'extClassAddSon',
          name: 'extClassAddSon',
          meta: { title: '新增二级泛家居类' },
          component: () => import(/* webpackChunkName: "extClassAddSon" */ '@/components/classification/extClassList/addSon.vue'),
        },
        {
          path: 'extClassList',
          name: 'extClassList',
          meta: { title: '泛家居分类' },
          component: () => import(/* webpackChunkName: "extClassList" */ '@/components/classification/extClassList/index.vue'),
        },
        {
          path: 'offerList',
          name: 'offerList',
          meta: { title: '一键报价' },
          component: () => import(/* webpackChunkName: "offerList" */ '@/components/onekeyOffer/list/list.vue'),
        },
        {
          path: 'appCateAdd',
          name: 'appCateAdd',
          component: () => import(/* webpackChunkName: "appCateAdd" */ '@/components/classification/appcate/add/index.vue'),
        },
        {
          path: 'appCateList',
          name: 'appCateList',
          component: () => import(/* webpackChunkName: "appCateList" */ '@/components/classification/appcate/list/index.vue'),
        },
        {
          path: 'appCateEdit',
          name: 'appCateEdit',
          component: () => import(/* webpackChunkName: "appCateEdit" */ '@/components/classification/appcate/edit/index.vue'),
        },
        {
          path: 'houseList',
          name: 'houseList',
          component: () => import(/* webpackChunkName: "houseList" */ '@/components/house/list/index.vue'),
        },
        {
          path: 'brandList',
          name: 'brandList',
          component: () => import(/* webpackChunkName: "brandList" */ '@/components/brand/list/index.vue'),
        },
        {
          path: 'brandAdd',
          name: 'brandAdd',
          component: () => import(/* webpackChunkName: "brandAdd" */ '@/components/brand/add/index.vue'),
        },
        {
          path: 'brandEdit',
          name: 'brandEdit',
          component: () => import(/* webpackChunkName: "brandEdit" */ '@/components/brand/edit/index.vue'),
        },
        {
          path: 'partyStatics',
          name: 'partyStatics',
          component: () => import(/* webpackChunkName: "partyStatics" */ '@/components/activity/statics/index.vue'),
        },
        {
          path: 'likeList',
          name: 'likeList',
          component: () => import(/* webpackChunkName: "likeList" */ '@/components/activity/like/list.vue'),
        },
        {
          path: 'partyList',
          name: 'partyList',
          component: () => import(/* webpackChunkName: "partyList" */ '@/components/activity/party/list.vue'),
        },
        {
          path: 'userLevelList',
          name: 'userLevelList',
          component: () => import(/* webpackChunkName: "userLevelList" */ '@/components/user/level/list/index.vue'),
        },
        {
          path: 'userLevelAdd',
          name: 'userLevelAdd',
          component: () => import(/* webpackChunkName: "userLevelAdd" */ '@/components/user/level/add/index.vue'),
        },
        {
          path: 'userLevelEdit',
          name: 'userLevelEdit',
          component: () => import(/* webpackChunkName: "userLevelEdit" */ '@/components/user/level/edit/index.vue'),
        },
        {
          path: 'userPointList',
          name: 'userPointList',
          component: () => import(/* webpackChunkName: "userPointList" */ '@/components/user/point/list/index.vue'),
        },
        {
          path: 'userList',
          name: 'userList',
          component: () => import(/* webpackChunkName: "userList" */ '@/components/user/list/index.vue'),
        },
		//业务员
		{
		  path: 'salesman',
		  name: 'salesman',
		  component: () => import(/* webpackChunkName: "salesman" */ '@/view/user/salesman/index/index.vue'),
		},
		//业务员详情
		{
		  path: 'userDateils',
		  name: 'userDateils',
		  component: () => import(/* webpackChunkName: "userDateils" */ '@/view/user/salesman/dateils/index.vue'),
		},
        {
          path: 'userPointAdd',
          name: 'userPointAdd',
          component: () => import(/* webpackChunkName: "userPointAdd" */ '@/components/user/point/add/index.vue'),
        },
        {
          path: 'userPointEdit',
          name: 'userPointEdit',
          component: () => import(/* webpackChunkName: "userPointEdit" */ '@/components/user/point/edit/index.vue'),
        },
        //   财务
        {
          path: 'shopSettle',
          name: 'shopSettle',
          component: () => import(/* webpackChunkName: "shopSettle" */ '@/components/financeManage/businessOrder/shopSettle/shopSettle.vue'),
        },
        {
          path: 'shopSettleDetail',
          name: 'shopSettleDetail',
          component: () => import(/* webpackChunkName: "shopSettleDetail" */ '@/components/financeManage/businessOrder/shopSettleDetail/index.vue'),
        },
        {
          path: 'makerSettle',
          name: 'makerSettle',
          component: () => import(/* webpackChunkName: "makerSettle" */ '@/components/financeManage/distriSettle/makerSettle/makerSettle.vue'),
        },
        {
          path: 'guideSettle',
          name: 'guideSettle',
          component: () => import(/* webpackChunkName: "guideSettle" */ '@/components/financeManage/distriSettle/guideSettle/guideSettle.vue'),
        },
        {
          path: 'businessApproval',
          name: 'businessApproval',
          component: () => import(/* webpackChunkName: "businessApproval" */ '@/components/financeManage/withdrawal/businessApproval/index.vue'),
        },
        {
          path: 'makerApproval',
          name: 'makerApproval',
          component: () => import(/* webpackChunkName: "makerApproval" */ '@/components/financeManage/withdrawal/makerApproval/index.vue'),
        },
        {
          path: 'guideApproval',
          name: 'guideApproval',
          component: () => import(/* webpackChunkName: "guideApproval" */ '@/components/financeManage/withdrawal/guideApproval/index.vue'),
        },
        {
          path: 'bankCardManage',
          name: 'bankCardManage',
          component: () => import(/* webpackChunkName: "bankCardManage" */ '@/components/financeManage/withdrawal/bankCardManage/index.vue'),
        },
        {
          path: 'manageGeneral',
          name: 'manageGeneral',
          component: () => import(/* webpackChunkName: "manageGeneral" */ '@/components/financeManage/financeSettle/manageGeneral/index.vue'),
        },
        {
          path: 'withdrAndFree',
          name: 'withdrAndFree',
          component: () => import(/* webpackChunkName: "withdrAndFree" */ '@/components/financeManage/financeSettle/withdrAndFree/index.vue'),
        },
        {
          path: 'decLoanList',
          name: 'decLoanList',
          meta: { title: '装修贷申请列表' },
          component: () => import(/* webpackChunkName: "withdrAndFree" */ '@/components/decLoan/list/list.vue'),
        },
        {
          path: 'decLoanDetail',
          name: 'decLoanDetail',
          meta: { title: '装修贷申请详情' },
          component: () => import(/* webpackChunkName: "withdrAndFree" */ '@/components/decLoan/detail/detail.vue'),
        },

        // 平台商品管理
        {
          path: 'rootShopList',
          name: 'rootShopList',
          meta: { title: '平台商品列表' },
          component: () => import(/* webpackChunkName: "withdrAndFree" */ '@/components/rootShopManage/rootShopList/list.vue'),
        },
        {
          path: 'rootShopDetail',
          name: 'rootShopDetail',
          meta: { title: '平台商品添加' },
          component: () => import(/* webpackChunkName: "withdrAndFree" */ '@/components/rootShopManage/rootShopDetail/detail.vue'),
        },

        // 关键字管理
        {
          path: 'keywordList',
          name: 'keywordList',
          meta: { title: '关键字列表' },
          component: () => import(/* webpackChunkName: "withdrAndFree" */ '@/components/keywordManage/keywordList/list.vue'),
        },
        {
          path: 'keywordDetail',
          name: 'keywordDetail',
          meta: { title: '关键字添加' },
          component: () => import(/* webpackChunkName: "withdrAndFree" */ '@/components/keywordManage/keywordDetail/detail.vue'),
        },

        {
          path: 'productAdd',
          name: 'productAdd',
          meta: { title: '设计师案例列表' },
          component: () => import(/* webpackChunkName: "productAdd" */ '@/components/product/productAdd/productAdd.vue')
        },
        {
          path: 'productList',
          name: 'productList',
          meta: { title: '设计师案例列表' },
          component: () => import(/* webpackChunkName: "productList" */ '@/components/product/productList/index.vue')
        },
        {
          path: 'productDetail',
          name: 'productDetail',
          meta: { title: '设计师案例详情' },
          component: () => import(/* webpackChunkName: "caseDetail" */ '@/components/product/productDetail/detail.vue')
        },
        {
          path: 'sendIndex',
          name: 'sendIndex',
          meta: { title: '待发货' },
          component: () => import(/* webpackChunkName: "sendIndex" */ '@/components/order/send/index/index.vue')
        },
        {
          path: 'sendDetails',
          name: 'sendDetails',
          meta: { title: '待发货详情' },
          component: () => import(/* webpackChunkName: "sendDetails" */ '@/components/order/send/details/details.vue')
        },
        {
          path: 'forIndex',
          name: 'forIndex',
          meta: { title: '待收货' },
          component: () => import(/* webpackChunkName: "forIndex" */ '@/components/order/for/index/index.vue')
        },
        {
          path: 'forDetails',
          name: 'forDetails',
          meta: { title: '待收货详情' },
          component: () => import(/* webpackChunkName: "forDetails" */ '@/components/order/for/details/details.vue')
        },
        {
          path: 'paymentIndex',
          name: 'paymentIndex',
          meta: { title: '待支付' },
          component: () => import(/* webpackChunkName: "paymentIndex" */ '@/components/order/payment/index/index.vue')
        },
        {
          path: 'paymentDetails',
          name: 'paymentDetails',
          meta: { title: '待支付详情' },
          component: () => import(/* webpackChunkName: "paymentDetails" */ '@/components/order/payment/details/details.vue')
        },
        {
          path: 'completedIndex',
          name: 'completedIndex',
          meta: { title: '已完成' },
          component: () => import(/* webpackChunkName: "completedIndex" */ '@/components/order/completed/index/index.vue')
        },
        {
          path: 'completedDetails',
          name: 'completedDetails',
          meta: { title: '已完成详情' },
          component: () => import(/* webpackChunkName: "completedDetails" */ '@/components/order/completed/details/details.vue')
        },
        {
          path: 'closedIndex',
          name: 'closedIndex',
          meta: { title: '已关闭' },
          component: () => import(/* webpackChunkName: "closedIndex" */ '@/components/order/closed/index/index.vue')
        },
        {
          path: 'closedDetails',
          name: 'closedDetails',
          meta: { title: '已关闭详情' },
          component: () => import(/* webpackChunkName: "closedDetails" */ '@/components/order/closed/details/details.vue')
        },
        {
          path: 'manaindex',
          name: 'manaindex',
          component: () => import(/* webpackChunkName: "manaindex" */ '@/components/manaindex/manaindex'),
        },
        {
          path: 'bannerSet',
          name: 'bannerSet',
          component: () => import(/* webpackChunkName: "bannerSet" */ '@/components/basicsSet/bannerSet/bannerSet.vue'),
        },

        {
          path: 'businessList',
          name: 'businessList',
          component: () => import(/* webpackChunkName: "businessList" */ '@/components/businessManage/businessList/businessList.vue'),
        },
        {
          path: 'newBusiness',
          name: 'newBusiness',
          component: () => import(/* webpackChunkName: "newBusiness" */ '@/components/businessManage/newBusiness/newBusiness.vue'),
        },
        {
          path: 'editBusiness',
          name: 'editBusiness',
          component: () => import(/* webpackChunkName: "editBusiness" */ '@/components/businessManage/editBusiness/editBusiness.vue'),
        },
        {
          path: 'needExamine',
          name: 'needExamine',
          component: () => import(/* webpackChunkName: "needExamine" */ '@/components/platAudit/needExamine/needExamine.vue'),
        },
        {
          path: 'passExamine',
          name: 'passExamine',
          component: () => import(/* webpackChunkName: "passExamine" */ '@/components/platAudit/passExamine/passExamine.vue'),
        },
        {
          path: 'rejectExamine',
          name: 'rejectExamine',
          component: () => import(/* webpackChunkName: "rejectExamine" */ '@/components/platAudit/rejectExamine/rejectExamine.vue'),
        },
        {
          path: 'partnerList',
          name: 'partnerList',
          component: () => import(/* webpackChunkName: "partnerList" */ '@/components/partner/partnerList/partnerList.vue'),
        },
        {
          path: 'newPartner',
          name: 'newPartner',
          component: () => import(/* webpackChunkName: "newPartner" */ '@/components/partner/newPartner/newPartner.vue'),
        },
        {
          path: 'partnerDetail',
          name: 'partnerDetail',
          component: () => import(/* webpackChunkName: "partnerDetail" */ '@/components/partner/partnerDetail/partnerDetail.vue'),
        },
        {
          path: 'constructionList',
          name: 'constructionList',
          component: () => import(/* webpackChunkName: "constructionList" */ '@/components/constructionManage/constructionList/constructionList.vue'),
        },
        {
          path: 'newConstruction',
          name: 'newConstruction',
          component: () => import(/* webpackChunkName: "newConstruction" */ '@/components/constructionManage/newConstruction/newConstruction.vue'),
        },
        {
          path: 'constructionDetail',
          name: 'constructionDetail',
          component: () => import(/* webpackChunkName: "constructionDetail" */ '@/components/constructionManage/constructionDetail/constructionDetail.vue'),
        },
        {
          path: 'designerList',
          name: 'designerList',
          component: () => import(/* webpackChunkName: "designerList" */ '@/components/designerManage/designerList/designerList.vue'),
        },
        {
          path: 'newDesigner',
          name: 'newDesigner',
          component: () => import(/* webpackChunkName: "newDesigner" */ '@/components/designerManage/newDesigner/newDesigner.vue'),
        },
        {
          path: 'designerDetail',
          name: 'designerDetail',
          component: () => import(/* webpackChunkName: "designerDetail" */ '@/components/designerManage/designerDetail/designerDetail.vue'),
        },
        {
          path: 'decorationList',
          name: 'decorationList',
          component: () => import(/* webpackChunkName: "decorationList" */ '@/components/decorationManage/decorationList/decorationList.vue'),
        },
        {
          path: 'newDecoration',
          name: 'newDecoration',
          component: () => import(/* webpackChunkName: "newDecoration" */ '@/components/decorationManage/newDecoration/newDecoration.vue'),
        },
        {
          path: 'decorationDetail',
          name: 'decorationDetail',
          component: () => import(/* webpackChunkName: "decorationDetail" */ '@/components/decorationManage/decorationDetail/decorationDetail.vue'),
        },
        {
          path: 'classList',
          name: 'classList',
          component: () => import(/* webpackChunkName: "classList" */ '@/components/classification/classList/classList.vue'),
        },
        {
          path: 'newPrimaryClass',
          name: 'newPrimaryClass',
          component: () => import(/* webpackChunkName: "newPrimaryClass" */ '@/components/classification/newPrimaryClass/newPrimaryClass.vue'),
        },
        {
          path: 'newSecondaryClass',
          name: 'newSecondaryClass',
          component: () => import(/* webpackChunkName: "newSecondaryClass" */ '@/components/classification/newSecondaryClass/newSecondaryClass.vue'),
        },
        {
          path: 'couponList',
          name: 'couponList',
          component: () => import(/* webpackChunkName: "couponList" */ '@/components/coupon/list/index.vue'),
        },
        {
          path: 'addCoupon',
          name: 'addCoupon',
          component: () => import(/* webpackChunkName: "addCoupon" */ '@/components/coupon/add/index.vue'),
        },
        {
          path: 'editCoupon',
          name: 'editCoupon',
          component: () => import(/* webpackChunkName: "editCoupon" */ '@/components/coupon/edit/index.vue'),
        },
        {
          path: 'lootCoupon',
          name: 'lootCoupon',
          component: () => import(/* webpackChunkName: "lootCoupon" */ '@/components/coupon/loot/index.vue'),
        },

        {
          path: 'articleList',
          name: 'articleList',
          component: () => import(/* webpackChunkName: "articleList" */ '@/components/article/list/index.vue'),
        },
        {
          path: 'addArticle',
          name: 'addArticle',
          component: () => import(/* webpackChunkName: "addArticle" */ '@/components/article/add/index.vue'),
        },
        {
          path: 'editArticle',
          name: 'editArticle',
          component: () => import(/* webpackChunkName: "editArticle" */ '@/components/article/edit/index.vue'),
        },

        {
          path: 'articleMakerList',
          name: 'articleMakerList',
          component: () => import(/* webpackChunkName: "articleMakerList" */ '@/components/articleMaker/list/index.vue'),
        },
        {
          path: 'addArticleMaker',
          name: 'addArticleMaker',
          component: () => import(/* webpackChunkName: "addArticleMaker" */ '@/components/articleMaker/add/index.vue'),
        },
        {
          path: 'editArticleMaker',
          name: 'editArticleMaker',
          component: () => import(/* webpackChunkName: "editArticleMaker" */ '@/components/articleMaker/edit/index.vue'),
        },

        {
          path: 'articleTypeList',
          name: 'articleTypeList',
          component: () => import(/* webpackChunkName: "articleTypeList" */ '@/components/articleType/list/index.vue'),
        },
        {
          path: 'addArticleType',
          name: 'addArticleType',
          component: () => import(/* webpackChunkName: "addArticleType" */ '@/components/articleType/add/index.vue'),
        },
        {
          path: 'editArticleType',
          name: 'editArticleType',
          component: () => import(/* webpackChunkName: "editArticleType" */ '@/components/articleType/edit/index.vue'),
        },
        {
          path: 'productHot',
          name: 'productHot',
          component: () => import(/* webpackChunkName: "productHot" */ '@/components/productHot/list/index.vue'),
        },
        {
          path: 'addProductHot',
          name: 'addProductHot',
          component: () => import(/* webpackChunkName: "addProductHot" */ '@/components/productHot/add/index.vue'),
        },
        {
          path: 'shopList',
          name: 'shopList',
          component: () => import(/* webpackChunkName: "shopList" */ '@/components/shopManage/shopList/shopList.vue'),
        },
        {
          path: 'shopDetail',
          name: 'shopDetail',
          component: () => import(/* webpackChunkName: "shopDetail" */ '@/components/shopManage/shopDetail/shopDetail.vue'),
        },
        {
          path: 'productLibraryList',
          name: 'productLibraryList',
          component: () => import(/* webpackChunkName: "productLibraryList" */ '@/components/productLibrary/productLibraryList/productLibraryList.vue'),
        },
        {
          path: 'productLibraryDetail',
          name: 'productLibraryDetail',
          component: () => import(/* webpackChunkName: "productLibraryDetail" */ '@/components/productLibrary/productLibraryDetail/productLibraryDetail.vue'),
        },
        {
          path: 'nodeList',
          name: 'nodeList',
          component: () => import(/* webpackChunkName: "nodeList" */ '@/components/rootManage/nodeList/nodeList.vue'),
        },
        {
          path: 'roleRoot',
          name: 'roleRoot',
          component: () => import(/* webpackChunkName: "roleRoot" */ '@/components/rootManage/roleRoot/roleRoot.vue'),
        },
        {
          path: 'bannerList',
          name: 'bannerList',
          component: () => import(/* webpackChunkName: "bannerList" */ '@/components/basicsSet/bannerList/bannerList.vue'),
        },
        {
          path: 'bannerDetail',
          name: 'bannerDetail',
          component: () => import(/* webpackChunkName: "bannerDetail" */ '@/components/basicsSet/bannerDetail/bannerDetail.vue'),
        },
        {
          path: 'bannerTypeList',
          name: 'bannerTypeList',
          component: () => import(/* webpackChunkName: "bannerTypeList" */ '@/components/basicsSet/bannerTypeList/bannerTypeList.vue'),
        },
        {
          path: 'bannerTypeDetail',
          name: 'bannerTypeDetail',
          component: () => import(/* webpackChunkName: "bannerTypeDetail" */ '@/components/basicsSet/bannerTypeDetail/bannerTypeDetail.vue'),
        },
        {
          path: 'approList',
          name: 'approList',
          component: () => import(/* webpackChunkName: "approList" */ '@/components/withdrawAppro/approList/approList.vue'),
        },
        {
          path: 'approPass',
          name: 'approPass',
          component: () => import(/* webpackChunkName: "approPass" */ '@/components/withdrawAppro/approPass/approPass.vue'),
        },
        {
          path: 'approReject',
          name: 'approReject',
          component: () => import(/* webpackChunkName: "approReject" */ '@/components/withdrawAppro/approReject/approReject.vue'),
        },
        {
          path: 'marketList',
          name: 'marketList',
          component: () => import(/* webpackChunkName: "marketList" */ '@/components/market/marketList/marketList.vue'),
        },
        {
          path: 'marketDetail',
          name: 'marketDetail',
          component: () => import(/* webpackChunkName: "marketDetail" */ '@/components/market/marketDetail/marketDetail.vue'),
        },
        {
          path: 'informationList',
          name: 'informationList',
          component: () => import(/* webpackChunkName: "informationList" */ '@/components/information/informationList/informationList.vue'),
        },
        {
          path: 'noticeList',
          name: 'noticeList',
          component: () => import(/* webpackChunkName: "noticeList" */ '@/components/notice/list/index.vue'),
        },
        {
          path: 'noticeAdd',
          name: 'noticeAdd',
          component: () => import(/* webpackChunkName: "noticeAdd" */ '@/components/notice/add/index.vue'),
        },
        {
          path: 'noticeEdit',
          name: 'noticeEdit',
          component: () => import(/* webpackChunkName: "noticeEdit" */ '@/components/notice/edit/index.vue'),
        },
        {
          path: 'informationAdd',
          name: 'informationAdd',
          component: () => import(/* webpackChunkName: "informationAdd" */ '@/components/information/informationAdd/informationAdd.vue'),
        },
        {
          path: 'recommendbusinessAdd',
          name: 'recommendbusinessAdd',
          component: () => import(/* webpackChunkName: "recommendbusinessAdd" */ '@/components/recommendManage/recommendbusiness/recommendbusinessAdd/recommendbusinessAdd.vue'),
        },
        {
          path: 'recommendbusinessList',
          name: 'recommendbusinessList',
          component: () => import(/* webpackChunkName: "recommendbusinessList" */ '@/components/recommendManage/recommendbusiness/recommendbusinessList/recommendbusinessList.vue'),
        },
        {
          path: 'recommendShopAdd',
          name: 'recommendShopAdd',
          component: () => import(/* webpackChunkName: "recommendShopAdd" */ '@/components/recommendManage/recommendShop/recommendShopAdd/recommendShopAdd.vue'),
        },
        {
          path: 'recommendShopList',
          name: 'recommendShopList',
          component: () => import(/* webpackChunkName: "recommendShopList" */ '@/components/recommendManage/recommendShop/recommendShopList/recommendShopList.vue'),
        },
        {
          path: 'knowledgeDetail',
          name: 'knowledgeDetail',
          component: () => import(/* webpackChunkName: "knowledgeDetail" */ '@/components/kefu/knowledgeDetail/knowledgeDetail.vue'),
        },
        {
          path: 'knowledgeList',
          name: 'knowledgeList',
          component: () => import(/* webpackChunkName: "knowledgeList" */ '@/components/kefu/knowledgeList/knowledgeList.vue'),
        },
        {
          path: 'welcomeDetail',
          name: 'welcomeDetail',
          component: () => import(/* webpackChunkName: "welcomeDetail" */ '@/components/kefu/welcomeDetail/welcomeDetail.vue'),
        },
        {
          path: 'welcomeList',
          name: 'welcomeList',
          component: () => import(/* webpackChunkName: "welcomeList" */ '@/components/kefu/welcomeList/welcomeList.vue'),
        },
        {
          path: 'estateList',
          name: 'estateList',
          component: () => import(/* webpackChunkName: "estateList" */ '@/components/estateManage/estateList/estateList.vue'),
        },
        {
          path: 'estateAdd',
          name: 'estateAdd',
          component: () => import(/* webpackChunkName: "estateAdd" */ '@/components/estateManage/estateAdd/estateAdd.vue'),
        },
        {
          path: 'estateHouseAdd',
          name: 'estateHouseAdd',
          component: () => import(/* webpackChunkName: "estateHouseAdd" */ '@/components/estateManage/estateHouseAdd/estateHouseAdd.vue'),
        },
        {
          path: 'houseSource',
          name: 'houseSource',
          component: () => import(/* webpackChunkName: "houseSource" */ '@/components/estateManage/houseSource/houseSource.vue'),
        },
        {
          path: 'liveCate',
          name: 'liveCate',
          component: () => import(/* webpackChunkName: "liveCate" */ '@/components/liveManage/liveCate/index.vue'),
        },
        {
          path: 'liveList',
          name: 'liveList',
          component: () => import(/* webpackChunkName: "liveList" */ '@/components/liveManage/liveList/index/index.vue'),
        },
        {
          path: 'Player',
          name: 'Player',
          component: () => import(/* webpackChunkName: "liveList" */ '@/components/liveManage/Player.vue'),
        },
        {
          path: 'xcxPlayer',
          name: 'xcxPlayer',
          component: () => import(/* webpackChunkName: "liveList" */ '@/components/liveManage/xcxPlayer.vue'),
        },
        //小程序直播分享记录
        {
          path: 'liveShareRecord',
          name: 'liveShareRecord',
          component: () => import(/* webpackChunkName: "liveList" */ '@/components/liveManage/shareLive/index.vue'),
        },
        {
          path: 'PlayerType',
          name: 'PlayerType',
          component: () => import(/* webpackChunkName: "liveList" */ '@/components/liveManage/PlayerType.vue'),
        },
        {
          path: 'liveDetail',
          name: 'liveDetail',
          component: () => import(/* webpackChunkName: "liveDetail" */ '@/components/liveManage/liveList/detail/detail.vue'),
        },
        {
          path: 'liveLuckList',
          name: 'liveLuckList',
          component: () => import(/* webpackChunkName: "liveDetail" */ '@/components/liveManage/liveLuckUser/index.vue'),
        },
        {
          path: 'systemSet',
          name: 'systemSet',
          component: () => import(/* webpackChunkName: "systemSet" */ '@/components/systemSet/index.vue'),
        },
        {
          path: 'recommendCaseAdd',
          name: 'recommendCaseAdd',
          component: () => import(/* webpackChunkName: "recommendCaseAdd" */ '@/components/recommendManage/recommendCase/add/add.vue'),
        },
        {
          path: 'recommendCaseList',
          name: 'recommendCaseList',
          component: () => import(/* webpackChunkName: "recommendCaseList" */ '@/components/recommendManage/recommendCase/index/index.vue'),
        },
        {
          path: 'recomCaseAddBuild',
          name: 'recomCaseAddBuild',
          component: () => import(/* webpackChunkName: "recomCaseAddBuild" */ '@/components/recommendManage/recommendCaseBuild/add/add.vue'),
        },
        {
          path: 'recomCaseListBuild',
          name: 'recomCaseListBuild',
          component: () => import(/* webpackChunkName: "recomCaseListBuild" */ '@/components/recommendManage/recommendCaseBuild/index/index.vue'),
        },
        {
          path: 'recomDesginAdd',
          name: 'recomDesginAdd',
          component: () => import(/* webpackChunkName: "recomDesginAdd" */ '@/components/recommendManage/recomDesgin/add/add.vue'),
        },
        {
          path: 'recomDesginList',
          name: 'recomDesginList',
          component: () => import(/* webpackChunkName: "recomDesginList" */ '@/components/recommendManage/recomDesgin/index/index.vue'),
        },
        {
          path: 'recomBuildAdd',
          name: 'recomBuildAdd',
          component: () => import(/* webpackChunkName: "recomBuildAdd" */ '@/components/recommendManage/recomBuild/add/add.vue'),
        },
        {
          path: 'recomBuildList',
          name: 'recomBuildList',
          component: () => import(/* webpackChunkName: "recomBuildList" */ '@/components/recommendManage/recomBuild/index/index.vue'),
        },
        {
          path: 'recomLiveAdd',
          name: 'recomLiveAdd',
          component: () => import(/* webpackChunkName: "recomLiveAdd" */ '@/components/recommendManage/recomLive/add/add.vue'),
        },
        {
          path: 'recomLiveList',
          name: 'recomLiveList',
          component: () => import(/* webpackChunkName: "recomLiveList" */ '@/components/recommendManage/recomLive/index/index.vue'),
        },
        {
          path: 'recomPackageAdd',
          name: 'recomPackageAdd',
          component: () => import(/* webpackChunkName: "recomPackageAdd" */ '@/components/recommendManage/recomPackage/recomPackageAdd/recomPackageAdd.vue'),
        },
        {
          path: 'recomPackageList',
          name: 'recomPackageList',
          component: () => import(/* webpackChunkName: "recomPackageList" */ '@/components/recommendManage/recomPackage/recomPackageList/recomPackageList.vue'),
        },
        {
          path: 'recomEstateAdd',
          name: 'recomEstateAdd',
          component: () => import(/* webpackChunkName: "recomEstateAdd" */ '@/components/recommendManage/recomEstate/recomEstateAdd/recomEstateAdd.vue'),
        },
        {
          path: 'recomEstateList',
          name: 'recomEstateList',
          component: () => import(/* webpackChunkName: "recomPackageList" */ '@/components/recommendManage/recomEstate/recomEstateList/recomEstateList.vue'),
        },
        {
          path: 'recomDecoraAdd',
          name: 'recomDecoraAdd',
          component: () => import(/* webpackChunkName: "recomDecoraAdd" */ '@/components/recommendManage/recomDecora/add/add.vue'),
        },
        {
          path: 'recomDecoraList',
          name: 'recomDecoraList',
          component: () => import(/* webpackChunkName: "recomDecoraList" */ '@/components/recommendManage/recomDecora/index/index.vue'),
        },
        {
          path: 'activityList',
          name: 'activityList',
          component: () => import(/* webpackChunkName: "activityList" */ '@/components/activity/activityList/index.vue'),
        },
        {
          path: 'staffList',
          name: 'staffList',
          meta: { title: '员工管理' },
          component: () => import(/* webpackChunkName: "staffList" */ '@/components/staffManage/list/index/index.vue'),
        },
        {
          path: 'staffDetail',
          name: 'staffDetail',
          meta: { title: '员工管理详情' },
          component: () => import(/* webpackChunkName: "staffDetail" */ '@/components/staffManage/list/detail/detail.vue'),
        },
        {
          path: 'staffListQy',
          name: 'staffListQy',
          meta: { title: '企业微信员工' },
          component: () => import(/* webpackChunkName: "staffListQy" */ '@/components/staffManage/listQy/index/index.vue'),
        },
        {
          path: 'staffQyDetail',
          name: 'staffQyDetail',
          meta: { title: '企业微信员工详情' },
          component: () => import(/* webpackChunkName: "staffQyDetail" */ '@/components/staffManage/listQy/detail/detail.vue'),
        },
        {
          path: 'quitList',
          name: 'quitList',
          meta: { title: '离职继承' },
          component: () => import(/* webpackChunkName: "quitList" */ '@/components/staffManage/quitInherit/index/index.vue'),
        },
        {
          path: 'quitDetail',
          name: 'quitDetail',
          meta: { title: '离职继承详情' },
          component: () => import(/* webpackChunkName: "quitDetail" */ '@/components/staffManage/quitInherit/detail/detail.vue'),
        },
        {
          path: 'onjobList',
          name: 'onjobList',
          meta: { title: '在职继承' },
          component: () => import(/* webpackChunkName: "onjobList" */ '@/components/staffManage/onjob_inherit/index/index.vue'),
        },
        {
          path: 'viewCustomer',
          name: 'viewCustomer',
          meta: { title: '已分配客户' },
          component: () => import(/* webpackChunkName: "viewCustomer" */ '@/components/staffManage/onjob_inherit/viewCustomer/index.vue'),
        },
        {
          path: 'customer',
          name: 'customer',
          meta: { title: '客户标签' },
          component: () => import(/* webpackChunkName: "viewCustomer" */ '@/view/customer/label/labelView.vue'),
        },
        {
          path: 'QuickReply',
          name: 'QuickReply',
          meta: { title: '快捷回复' },
          component: () => import(/* webpackChunkName: "viewCustomer" */ '@/view/QuickReply/QuickReply.vue'),
        },
        {
          path: 'CustomerTools',
          name: 'CustomerTools',
          meta: { title: '快捷回复列表' },
          component: () => import(/* webpackChunkName: "viewCustomer" */ '@/view/CustomerTools/list.vue'),
        },
        {
          path: 'grouping',
          name: 'grouping',
          meta: { title: '快捷回复分组' },
          component: () => import(/* webpackChunkName: "viewCustomer" */ '@/view/CustomerTools/grouping.vue'),
        },
        {
          path: 'CustomerContact',
          name: 'CustomerContact',
          meta: { title: '客户联系' },
          component: () => import(/* webpackChunkName: "viewCustomer" */ '@/view/CustomerContact/list.vue'),
        },
        {
          path: 'serviceSetting',
          name: 'serviceSetting',
          meta: { title: '店铺客服按钮配置' },
          component: () => import(/* webpackChunkName: "viewCustomer" */ '@/view/CustomerTools/serviceSetting.vue'),
        },
        // 装修公司
        {
          path: 'decoraList',
          name: 'decoraList',
          meta: { title: '装修公司列表' },
          component: () => import(/* webpackChunkName: "decoraList" */ '@/components/decoraManage/decorationList/decorationList.vue'),
        },
        {
          path: 'newDecora',
          name: 'newDecora',
          meta: { title: '新增装修公司' },
          component: () => import(/* webpackChunkName: "newDecora" */ '@/components/decoraManage/newDecoration/newDecoration.vue'),
        },
        {
          path: 'decoraDetail',
          name: 'decoraDetail',
          meta: { title: '装修公司详情' },
          component: () => import(/* webpackChunkName: "decoraDetail" */ '@/components/decoraManage/decorationDetail/decorationDetail.vue'),
        },
        // 创客机构
        {
          path: 'makerList',
          name: 'makerList',
          meta: { title: '创客机构列表' },
          component: () => import(/* webpackChunkName: "makerList" */ '@/components/makerManage/makerList/makerList.vue'),
        },
        {
          path: 'newMaker',
          name: 'newMaker',
          meta: { title: '新增创客机构' },
          component: () => import(/* webpackChunkName: "newMaker" */ '@/components/makerManage/newMaker/newMaker.vue'),
        },
        {
          path: 'makerDetail',
          name: 'makerDetail',
          meta: { title: '创客机构详情' },
          component: () => import(/* webpackChunkName: "makerDetail" */ '@/components/makerManage/makerDetail/makerDetail.vue'),
        },

        {
          path: 'materialList',
          name: 'materialList',
          meta: { title: '素材列表' },
          component: () => import(/* webpackChunkName: "viewCustomer" */ '@/view/material/list/list.vue'),
        },
        {
          path: 'materialAdd',
          name: 'materialAdd',
          meta: { title: '添加素材' },
          component: () => import(/* webpackChunkName: "viewCustomer" */ '@/view/material/list/add.vue'),
        },
        {
          path: 'materialEdit',
          name: 'materialEdit',
          meta: { title: '修改素材' },
          component: () => import(/* webpackChunkName: "viewCustomer" */ '@/view/material/list/Edit.vue'),
        },
        {
          path: 'materialClassification',
          name: 'materialClassification',
          meta: { title: '素材分类' },
          component: () => import(/* webpackChunkName: "viewCustomer" */ '@/view/material/materialClassification/classification.vue'),
        },
        {
          path: 'ClassificationAdd',
          name: 'ClassificationAdd',
          meta: { title: '添加素材分类' },
          component: () => import(/* webpackChunkName: "viewCustomer" */ '@/view/material/materialClassification/add.vue'),
        },
        {
          path: 'ClassificationEdit',
          name: 'ClassificationEdit',
          meta: { title: '修改素材分类' },
          component: () => import(/* webpackChunkName: "viewCustomer" */ '@/view/material/materialClassification/Edit.vue'),
        },
        // 配置项管理
        {
          path: 'configList',
          name: 'configList',
          meta: { title: '配置项列表' },
          component: () => import(/* webpackChunkName: "configList" */ '@/components/configManage/configList/list.vue'),
        },

        // 排序管理
        {
          path: 'sortList',
          name: 'sortList',
          meta: { title: '配置项列表' },
          component: () => import(/* webpackChunkName: "sortList" */ '@/components/sortManage/sortList/list.vue'),
        },

        // 争议管理
        {
          path: 'disputeList',
          name: 'disputeList',
          meta: { title: '争议列表' },
          component: () => import(/* webpackChunkName: "disputeList" */ '@/components/disputeManage/disputeList/list.vue'),
        },
        {
          path: 'disputeDetail',
          name: 'disputeDetail',
          meta: { title: '争议详情' },
          component: () => import(/* webpackChunkName: "disputeDetail" */ '@/components/disputeManage/disputeDetail/detail.vue'),
        },

        // 企业微信客服
        {
          path: 'qywxKnowledgeList',
          name: 'qywxKnowledgeList',
          meta: { title: '企业微信客服知识库' },
          component: () => import(/* webpackChunkName: "qywxKnowledgeList" */ '@/components/qywxKefu/knowledgeList/knowledgeList.vue'),
        },
        {
          path: 'qywxKnowledgeDetail',
          name: 'qywxKnowledgeDetail',
          meta: { title: '企业微信客服知识库详情' },
          component: () => import(/* webpackChunkName: "qywxKnowledgeDetail" */ '@/components/qywxKefu/knowledgeDetail/knowledgeDetail.vue'),
        },
        // 动态
        {
          path: 'dynamicList',
          name: 'dynamicList',
          meta: { title: '动态列表' },
          component: () => import(/* webpackChunkName: "qywxKnowledgeDetail" */ '@/view/dynamic/dynamicList.vue'),
        },
        {
          path: 'dynamicDetaile',
          name: 'dynamicDetaile',
          meta: { title: '转发记录' },
          component: () => import(/* webpackChunkName: "qywxKnowledgeDetail" */ '@/view/dynamic/dynamicDetaile.vue'),
        },
        {
          path: 'dynamicSupport',
          name: 'dynamicSupport',
          meta: { title: '点赞记录' },
          component: () => import(/* webpackChunkName: "dynamicSupport" */ '@/view/dynamic/dynamicSupport.vue'),
        },
        {
          path: 'dynamicComment',
          name: 'dynamicComment',
          meta: { title: '评论记录' },
          component: () => import(/* webpackChunkName: "dynamicComment" */ '@/view/dynamic/dynamicComment.vue'),
        },
        {
          path: 'activityLists',
          name: 'activityLists',
          meta: { title: '活动列表' },
          component: () => import(/* webpackChunkName: "lotteryGrid" */ '@/components/activity/activityLists/index/index.vue')
        },
        {
          path: 'lotteryGridAdd',
          name: 'lotteryGridAdd',
          meta: { title: '新增奖品' },
          component: () => import(/* webpackChunkName: "lotteryGrid" */ '@/components/activity/lotteryGrid/add/index.vue')
        },
        {
          path: 'lotteryGridEdit',
          name: 'lotteryGridEdit',
          meta: { title: '编辑奖品' },
          component: () => import(/* webpackChunkName: "lotteryGrid" */ '@/components/activity/lotteryGrid/edit/index.vue')
        },

        // 双十一活动
        {
          path: 'doubleElevenList',
          name: 'doubleElevenList',
          meta: { title: '活动列表' },
          component: () => import(/* webpackChunkName: "doubleElevenList" */ '@/components/activity/elevenActivity/mainActivity/list/index.vue')
        },
        {
          path: 'addElevenActivity',
          name: 'addElevenActivity',
          meta: { title: '新增活动' },
          component: () => import(/* webpackChunkName: "addElevenActivity" */ '@/components/activity/elevenActivity/mainActivity/add/index.vue')
        },
        {
          path: 'childActivity',
          name: 'childActivity',
          meta: { title: '子活动列表' },
          component: () => import(/* webpackChunkName: "childActivity" */ '@/components/activity/elevenActivity/sonActivity/childList/index.vue')
        },
        {
          path: 'addChildActivity',
          name: 'addChildActivity',
          meta: { title: '新增子活动' },
          component: () => import(/* webpackChunkName: "addChildActivity" */ '@/components/activity/elevenActivity/sonActivity/childAdd/index.vue')
        },
        {
          path: 'activityGoodsList',
          name: 'activityGoodsList',
          meta: { title: '活动商品列表' },
          component: () => import(/* webpackChunkName: "activityGoodsList" */ '@/components/activity/elevenActivity/activityGoods/list/index.vue')
        },
        {
          path: 'activityGoodsAdd',
          name: 'activityGoodsAdd',
          meta: { title: '添加活动商品' },
          component: () => import(/* webpackChunkName: "activityGoodsAdd" */ '@/components/activity/elevenActivity/activityGoods/add/index.vue')
        },
        {
          path: 'activityPrizeList',
          name: 'activityPrizeList',
          meta: { title: '活动奖品列表' },
          component: () => import(/* webpackChunkName: "activityPrizeList" */ '@/components/activity/elevenActivity/prize/list/index.vue')
        },
        {
          path: 'activityPrizeAdd',
          name: 'activityPrizeAdd',
          meta: { title: '活动奖品添加' },
          component: () => import(/* webpackChunkName: "activityPrizeAdd" */ '@/components/activity/elevenActivity/prize/add/index.vue')
        },
        //战区团队
        {
          path: '/teamList',
          name: 'teamList',
          meta: { title: '战区团队' },
          component: () => import(/* webpackChunkName: "activityGoodsOrderDetail" */ '@/components/activity/teamList/index/index.vue')
        },
        {
          path: '/teamStoreList',
          name: 'teamStoreList',
          meta: { title: '团队商户列表' },
          component: () => import(/* webpackChunkName: "activityGoodsOrderDetail" */ '@/components/activity/teamList/storeList/index.vue')
        },
        {
          path: 'writeOffList',
          name: 'writeOffList',
          meta: { title: '核销码列表' },
          component: () => import(/* webpackChunkName: "writeOffList" */ '@/components/activity/elevenActivity/prize/writeOff/index.vue')
        },
        {
          path: 'activityGoodsOrder',
          name: 'activityGoodsOrder',
          meta: { title: '活动商品订单' },
          component: () => import(/* webpackChunkName: "activityGoodsOrder" */ '@/components/activity/elevenActivity/activityGoodsOrder/index.vue')
        },
        {
          path: 'activityGoodsOrderDetail',
          name: 'activityGoodsOrderDetail',
          meta: { title: '活动商品订单详情' },
          component: () => import(/* webpackChunkName: "activityGoodsOrderDetail" */ '@/components/activity/elevenActivity/activityGoodsOrder/detail/detail.vue')
        },
        {
          path: 'prizeRecords',
          name: 'prizeRecords',
          meta: { title: '礼包销售统计' },
          component: () => import(/* webpackChunkName: "prizeRecords" */ '@/components/activity/elevenActivity/prizeRecords/index.vue')
        },
        {
          path: 'redRecord',
          name: 'redRecord',
          meta: { title: '红包发放统计' },
          component: () => import(/* webpackChunkName: "prizeRecords" */ '@/components/activity/elevenActivity/redRecord/index.vue')
        },
        {
          path: 'shopOrder',
          name: 'shopOrder',
          meta: { title: '商家订单' },
          component: () => import(/* webpackChunkName: "shopOrder" */ '@/components/partner/shopOrder/index.vue')
        },
		{
		  path: 'packageShop',
		  name: 'packageShop',
		  meta: { title: '授权商家产品包' },
		  component: () => import(/* webpackChunkName: "shopOrder" */ '@/view/packageAuth/index/index.vue')
		},
        {
          path: 'marketUser',
          name: 'marketUser',
          meta: { title: '卖场管理员' },
          component: () => import(/* webpackChunkName: "shopOrder" */ '@/components/market/marketUser/index.vue')
        },
        {
          path: 'budgetList',
          name: 'budgetList',
          meta: { title: '一键预算' },
          component: () => import(/* webpackChunkName: "shopOrder" */ '@/components/budgetManage/index.vue')
        },
        {
          path: '/groupList',
          name: 'groupList',
          meta: { title: '拼团商品' },
          component: () => import(/* webpackChunkName: "shopOrder" */ '@/components/shopManage/groupList/index.vue')
        },
        {
          path: '/specialOfferGoods',
          name: 'specialOfferGoods',
          meta: { title: '特价商品' },
          component: () => import(/* webpackChunkName: "shopOrder" */ '@/components/shopManage/specialOfferGoods/index.vue')
        },
        //超级管家
        {
          path: '/stewardTeam',
          name: 'stewardTeam',
          meta: { title: '团队列表' },
          component: () => import(/* webpackChunkName: "shopOrder" */ '@/components/superSteward/team/index/index.vue')
        },
        {
          path: '/teamDateils',
          name: 'teamDateils',
          meta: { title: '团队详情' },
          component: () => import(/* webpackChunkName: "shopOrder" */ '@/components/superSteward/team/teamDateils/index.vue')
        },
        {
          path: '/teamUserDateils',
          name: 'teamUserDateils',
          meta: { title: '团队成员详情' },
          component: () => import(/* webpackChunkName: "shopOrder" */ '@/components/superSteward/team/teamDateils/userDateils.vue')
        },
        {
          path: '/stewardShopOrder',
          name: 'stewardShopOrder',
          meta: { title: '商品订单' },
          component: () => import(/* webpackChunkName: "shopOrder" */ '@/components/superSteward/Order/OrderList.vue')
        },
        {
          path: '/stewardShopOrderInfo',
          name: 'stewardShopOrderInfo',
          meta: { title: '订单详情' },
          component: () => import(/* webpackChunkName: "shopOrder" */ '@/components/superSteward/Order/OrderInfo.vue')
        },
        {
          path: '/stewardProductOrder',
          name: 'stewardProductOrder',
          meta: { title: '产品包订单' },
          component: () => import(/* webpackChunkName: "shopOrder" */ '@/components/superSteward/Order/ProductOrder.vue')
        },
        {
          path: '/stewardDesignerOrder',
          name: 'stewardDesignerOrder',
          meta: { title: '设计师订单' },
          component: () => import(/* webpackChunkName: "shopOrder" */ '@/components/superSteward/Order/DesignerOrder.vue')
        },
        {
          path: '/stewardDesignerOrderInfo',
          name: 'stewardDesignerOrderInfo',
          meta: { title: '设计订单详情' },
          component: () => import(/* webpackChunkName: "shopOrder" */ '@/components/superSteward/Order/DesignerInfo.vue')
        },
        {
          path: '/stewardBuildOrder',
          name: 'stewardBuildOrder',
          meta: { title: '施工队订单' },
          component: () => import(/* webpackChunkName: "shopOrder" */ '@/components/superSteward/Order/BuildOrder.vue')
        },
        {
          path: '/stewardBuildOrderInfo',
          name: 'stewardBuildOrderInfo',
          meta: { title: '施工订单详情' },
          component: () => import(/* webpackChunkName: "shopOrder" */ '@/components/superSteward/Order/BuildInfo.vue')
        },
        {
          path: '/sample',
          name: 'sample',
          meta: { title: '样板间征集' },
          component: () => import(/* webpackChunkName: "shopOrder" */ '@/components/designerManage/sample/sample.vue')
        },
        {
          path: '/changeApproList',
          name: 'changeApproList',
          meta: { title: '更换主体审核' },
          component: () => import(/* webpackChunkName: "approList" */ '@/view/withdrawAppro/approList/approList.vue'),
        },
        {
          path: '/withdrAndBack',
          name: 'withdrAndBack',
          meta: { title: '提现手续费返现' },
          component: () => import(/* webpackChunkName: "approList" */ '@/components/financeManage/financeSettle/withdrAndBack/index.vue'),
        }
      ]
    },
    {
      path: '/login',
      name: 'login',
      component: () => import(/* webpackChunkName: "login" */ '@/components/login/login.vue')
    },
    //滚动屏抽奖欢迎页
    {
      path: '/startRollingDisc',
      name: 'startRollingDisc',
      meta: { title: '滚动屏抽奖开场页' },
      component: () => import(/* webpackChunkName: "rollingDisc" */ '@/components/activity/luckDraw/rollLuckDraw/startRollingDisc/index.vue')
    },
    //滚动屏抽奖
    {
      path: '/rollingDisc',
      name: 'rollingDisc',
      meta: { title: '滚动屏抽奖' },
      component: () => import(/* webpackChunkName: "rollingDisc" */ '@/components/activity/luckDraw/rollLuckDraw/index.vue')
    },
    //滚动屏抽奖开奖结果
    {
      path: '/rollingDiscResult',
      name: 'rollingDiscResult',
      meta: { title: '开奖结果' },
      component: () => import(/* webpackChunkName: "rollingDisc" */ '@/components/activity/luckDraw/rollLuckDraw/rollingDiscResult/index.vue')
    },
  ]
});
router.beforeEach((to, from, next) => {
  let token = localStorage.getItem('token');
  let router = JSON.parse(localStorage.getItem('root_router'));
  // console.log(router,'返回的路由')

  let nextRouter = findChild()
  function findChild() {
    let routerArr = []
    const getRouter = function (routerData) {
      if (routerData && routerData.length) {
        routerData.forEach(item => {
          if (item.child) {
            getRouter(item.child)
          } else {
            if (item.type == 'page') {
              routerArr.push(item.route)
            }
          }
        })
      }
    }
    getRouter(router)
    // console.log(routerArr,'///////');
    return routerArr
  }

  if (token) {
    // nextRouter.unshift('/manaindex') //首页路由()
    if (to.path == '/login') {
      next(false)
    } else {
      // let routerIndex = nextRouter.findIndex(item => item == to.path)
      // console.log(routerIndex,'---');
      // if (routerIndex != -1) {
      next()
      // } else {
      // next(false)
      // }
    }
  } else {
    if (to.path == '/login') {
      next()
    } else {
      next('/login')
    }
  }
});

export default router;